//  Copyright (c) 2024 Huawei Technologies Co., Ltd.
//  openUBMC is licensed under Mulan PSL v2.
//  You can use this software according to the terms and conditions of the Mulan PSL v2.
//  You may obtain a copy of Mulan PSL v2 at:
//        #  http://license.coscl.org.cn/MulanPSL2
//  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
//  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
//  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
//  See the Mulan PSL v2 for more details.
const cupJsonData = {
  UsagePercent: 1,
  ThresholdPercent: 2,
  History: [
    {
      Time: '2021/12/20 18:29:28',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:30:31',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:31:34',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:32:37',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:33:40',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:34:42',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:35:42',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:36:45',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:37:47',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:38:50',
      CpuUtilisePercents: 0
    },
    {
      Time: '2021/12/20 18:39:53',
      CpuUtilisePercents: 2
    },
    {
      Time: '2021/12/20 18:40:56',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:42:00',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:43:00',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:44:03',
      CpuUtilisePercents: 0
    },
    {
      Time: '2021/12/20 18:45:05',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:46:08',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:47:10',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:48:13',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:49:13',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:50:13',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:51:16',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:52:19',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:53:21',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:54:24',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:55:27',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 18:56:27',
      CpuUtilisePercents: 2.2
    },
    {
      Time: '2021/12/20 18:57:30',
      CpuUtilisePercents: 2.5
    },
    {
      Time: '2021/12/20 18:58:32',
      CpuUtilisePercents: 3
    },
    {
      Time: '2021/12/20 18:59:35',
      CpuUtilisePercents: 2.8
    },
    {
      Time: '2021/12/20 19:00:38',
      CpuUtilisePercents: 2.1
    },
    {
      Time: '2021/12/20 19:01:41',
      CpuUtilisePercents: 2
    },
    {
      Time: '2021/12/20 19:02:41',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:03:44',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:04:47',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:05:49',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:06:52',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:07:55',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:08:58',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:10:01',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:11:01',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:12:03',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:13:06',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:14:09',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:15:12',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:16:16',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:17:19',
      CpuUtilisePercents: 0
    },
    {
      Time: '2021/12/20 19:18:22',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:19:24',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:20:27',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:21:30',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:22:33',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:23:33',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:24:36',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:25:39',
      CpuUtilisePercents: 0
    },
    {
      Time: '2021/12/20 19:26:41',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:27:43',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:28:46',
      CpuUtilisePercents: 1
    },
    {
      Time: '2021/12/20 19:29:46',
      CpuUtilisePercents: 1.2
    }
  ]
};

const memoryJsonData = {
  CachedGiB: 0.47,
  BuffersGiB: 0,
  History: [
    {
      Time: '2021/12/20 18:43:00',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:44:03',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:45:05',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:46:08',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:47:10',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:48:13',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:49:13',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:50:13',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:51:16',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:52:19',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:53:21',
      MemOSUtilisePercents: 2
    },
    {
      Time: '2021/12/20 18:54:24',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:55:27',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:56:27',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:57:30',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:58:32',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 18:59:35',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:00:38',
      MemOSUtilisePercents: 5
    },
    {
      Time: '2021/12/20 19:01:41',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:02:41',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:03:44',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:04:47',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:05:49',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:06:52',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:07:55',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:08:58',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:10:01',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:11:01',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:12:03',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:13:06',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:14:09',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:15:12',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:16:16',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:17:19',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:18:22',
      MemOSUtilisePercents: 15
    },
    {
      Time: '2021/12/20 19:19:24',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:20:27',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:21:30',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:22:33',
      MemOSUtilisePercents: 30
    },
    {
      Time: '2021/12/20 19:23:33',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:24:36',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:25:39',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:26:41',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:27:43',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:28:46',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:29:46',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:30:50',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:31:53',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:32:56',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:33:59',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:35:01',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:36:04',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:37:07',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:38:07',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:39:10',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:40:13',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:41:16',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:42:18',
      MemOSUtilisePercents: 10
    },
    {
      Time: '2021/12/20 19:43:21',
      MemOSUtilisePercents: 10
    }
  ],
  UsagePercent: 9,
  CapacityGiB: 16,
  ThresholdPercent: 20,
  FreeGiB: 13.71
};

const networkJsonData = {
  ThresholdPercent: 15,
  History: [
    {
      BWUWaveTitle: 'LOM - LOM(2*10GE+2*GE)',
      PortCount: 1,
      CurrentUtilisePercents: [null, 0],
      UtilisePercents: [
        {
          Time: '2021/12/20 19:16:26',
          UtilisePercent: [5, 4]
        },
        {
          Time: '2021/12/20 19:17:34',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 19:18:41',
          UtilisePercent: [7, 6]
        },
        {
          Time: '2021/12/20 19:19:48',
          UtilisePercent: [8, 7]
        },
        {
          Time: '2021/12/20 19:20:55',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 19:21:55',
          UtilisePercent: [2, 1]
        },
        {
          Time: '2021/12/20 19:23:02',
          UtilisePercent: [3, 2]
        },
        {
          Time: '2021/12/20 19:24:03',
          UtilisePercent: [1, 8]
        },
        {
          Time: '2021/12/20 19:25:11',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 19:26:19',
          UtilisePercent: [5, 4]
        },
        {
          Time: '2021/12/20 19:27:25',
          UtilisePercent: [9, 12]
        },
        {
          Time: '2021/12/20 19:28:25',
          UtilisePercent: [8, 7]
        },
        {
          Time: '2021/12/20 19:29:33',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 19:30:33',
          UtilisePercent: [9, 8]
        },
        {
          Time: '2021/12/20 19:31:33',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 19:32:41',
          UtilisePercent: [2, 6]
        },
        {
          Time: '2021/12/20 19:33:49',
          UtilisePercent: [1, 9]
        },
        {
          Time: '2021/12/20 19:34:56',
          UtilisePercent: [8, 7]
        },
        {
          Time: '2021/12/20 19:36:04',
          UtilisePercent: [9, 8]
        },
        {
          Time: '2021/12/20 19:37:12',
          UtilisePercent: [12, 14]
        },
        {
          Time: '2021/12/20 19:38:13',
          UtilisePercent: [15, 12]
        },
        {
          Time: '2021/12/20 19:39:13',
          UtilisePercent: [14, 7]
        },
        {
          Time: '2021/12/20 19:40:13',
          UtilisePercent: [13, 6]
        },
        {
          Time: '2021/12/20 19:41:20',
          UtilisePercent: [12, 8]
        },
        {
          Time: '2021/12/20 19:42:27',
          UtilisePercent: [10, 6]
        },
        {
          Time: '2021/12/20 19:43:27',
          UtilisePercent: [4, 2]
        },
        {
          Time: '2021/12/20 19:44:35',
          UtilisePercent: [2, 3]
        },
        {
          Time: '2021/12/20 19:45:35',
          UtilisePercent: [7, 6]
        },
        {
          Time: '2021/12/20 19:46:43',
          UtilisePercent: [10, 9]
        },
        {
          Time: '2021/12/20 19:47:50',
          UtilisePercent: [16, 15]
        },
        {
          Time: '2021/12/20 19:48:50',
          UtilisePercent: [15, 14]
        },
        {
          Time: '2021/12/20 19:49:57',
          UtilisePercent: [12, 11]
        },
        {
          Time: '2021/12/20 19:51:05',
          UtilisePercent: [5, 4]
        },
        {
          Time: '2021/12/20 19:52:13',
          UtilisePercent: [10, 9]
        },
        {
          Time: '2021/12/20 19:53:13',
          UtilisePercent: [5, 4]
        },
        {
          Time: '2021/12/20 19:54:13',
          UtilisePercent: [1, 0]
        },
        {
          Time: '2021/12/20 19:55:20',
          UtilisePercent: [0, 9]
        },
        {
          Time: '2021/12/20 19:56:27',
          UtilisePercent: [5, 4]
        },
        {
          Time: '2021/12/20 19:57:27',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 19:58:35',
          UtilisePercent: [7, 6]
        },
        {
          Time: '2021/12/20 19:59:35',
          UtilisePercent: [8, 7]
        },
        {
          Time: '2021/12/20 20:00:35',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 20:01:35',
          UtilisePercent: [2, 1]
        },
        {
          Time: '2021/12/20 20:02:42',
          UtilisePercent: [3, 2]
        },
        {
          Time: '2021/12/20 20:03:42',
          UtilisePercent: [1, 8]
        },
        {
          Time: '2021/12/20 20:04:48',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 20:05:48',
          UtilisePercent: [5, 4]
        },
        {
          Time: '2021/12/20 20:06:55',
          UtilisePercent: [9, 12]
        },
        {
          Time: '2021/12/20 20:07:56',
          UtilisePercent: [8, 7]
        },
        {
          Time: '2021/12/20 20:09:04',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 20:10:04',
          UtilisePercent: [9, 8]
        },
        {
          Time: '2021/12/20 20:11:11',
          UtilisePercent: [6, 5]
        },
        {
          Time: '2021/12/20 20:12:11',
          UtilisePercent: [2, 6]
        },
        {
          Time: '2021/12/20 20:13:11',
          UtilisePercent: [1, 9]
        },
        {
          Time: '2021/12/20 20:14:18',
          UtilisePercent: [8, 7]
        },
        {
          Time: '2021/12/20 20:15:18',
          UtilisePercent: [9, 8]
        },
        {
          Time: '2021/12/20 20:16:18',
          UtilisePercent: [12, 14]
        },
        {
          Time: '2021/12/20 20:17:18',
          UtilisePercent: [0, 0]
        },
        {
          Time: '2021/12/20 20:18:25',
          UtilisePercent: [0, 0]
        }
      ]
    }
  ]
};

const diskJsonData = {
  ThresholdPercent: 80,
  Partitions: [
    {
      PartitionName: '/dev/mapper/cl-root',
      UsagePercent: 21,
      CapacityGB: 2,
      UsedGB: 1.9
    },
    {
      PartitionName: '/dev1',
      UsagePercent: 17,
      CapacityGB: 1,
      UsedGB: 0.16
    },
    {
      PartitionName: '/cl-root',
      UsagePercent: 7,
      CapacityGB: 0.2,
      UsedGB: 0.1
    },
    {
      PartitionName: '/dev3',
      UsagePercent: 21,
      CapacityGB: 2,
      UsedGB: 1.2
    },
    {
      PartitionName: '/dev4',
      UsagePercent: 17,
      CapacityGB: 1,
      UsedGB: 0.16
    },
    {
      PartitionName: '/dev5',
      UsagePercent: 7,
      CapacityGB: 0.2,
      UsedGB: 0.01
    },
    {
      PartitionName: '/dev6',
      UsagePercent: 21,
      CapacityGB: 2,
      UsedGB: 1.2
    },
    {
      PartitionName: '/dev7',
      UsagePercent: 17,
      CapacityGB: 1,
      UsedGB: 0.16
    },
    {
      PartitionName: '/dev8',
      UsagePercent: 7,
      CapacityGB: 0.3,
      UsedGB: 0.25
    }
  ]
};

const userData = {
  userId: 2,
  userName: 'Administrator',
  userRole: ['Administrator'],
  token: 'tokenHash',
  resourceId: 'e4aab0053e7255e6',
  isLogin: true,
  currentLoginIp: '',
  lastLoginIp: '',
  lastLoginTime: '2021-12-20 20:07:05',
  managersId: '',
  systemLockDownEnabled: false,
  systemsId: '',
  chassisId: '',
  platform: 'x86',
  customizedId: 1,
  loginWithoutPassword: false,
  isTwoFacCertification: false,
  privileges: [
    'OemKvm',
    'OemSecurityMgmt',
    'OemPowerControl',
    'OemDiagnosis',
    'Login',
    'ConfigureSelf',
    'ConfigureUsers',
    'ConfigureComponents',
    'OemVmm'
  ],
  isExited: false,
  ibmaSupport: true,
  licenseSupport: true,
  partitySupport: false,
  fdmSupport: false,
  fanSupport: true,
  tceSupport: false,
  spSupport: true,
  usbSupport: false,
  iBMARunning: false,
  userIp: '255.255.255.255',
  loginTime: '2021-12-21 11:40:03'
};

export { cupJsonData, memoryJsonData, networkJsonData, diskJsonData, userData };
